﻿using ElWsDemo.WebService;
using System;
using System.ServiceModel;

namespace ElWsDemo
{
    internal class Program
    {
        private static ServiceHost host = null;
        static void Main(string[] args)
        {
            Console.WriteLine("正在启动WebService...");
            host = new ServiceHost(typeof(ELService));
            host.Open();
            Console.WriteLine("WebService启动成功，地址：http://localhost:9000/ELService?wsdl");
            Console.WriteLine("按任意键退出");
            Console.ReadLine();
        }
    }
}
